//
//  AppDelegate.swift
//  HMWeibo
//
//  Created by HuaMou.Chen on 15/11/26.
//  Copyright © 2015年 HuaMou.Chen. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        setupAppearance()
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = MainViewController()
        window?.makeKeyAndVisible()
        return true
    }
    
    /// MARK: - 设置全局外观
    func setupAppearance() {
        UINavigationBar.appearance().tintColor = WBAppearance
        UITabBar.appearance().tintColor = WBAppearance
    }
}

